<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ModAlertOverview.aspx.cs" Inherits="ModAlert_ModAlertOverview"
	Title="ModAlert Overview - ModWatch" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageContent" Runat="Server">
	<h2>ModAlert Overview</h2>

	<p>
		ModAlert controls allow a developer to specify the events
		that should trigger the ModWatch framework to check for
		changes and notify the user if changes exist.
	</p>
	<p>
		The ModWatch framework provides a collection of ModAlertExtender
		controls that can be attached to the common controls that can
		cause the user to leave the page.
	</p>
	<p>
		Each ModAlert control contains the following properties:
	</p>
	<table cellpadding="0" cellspacing="0" border="0" class="paddedTable">
		<tr>
			<td>
				ModGroup
			</td>
			<td style="width: 10px;">&nbsp;</td>
			<td>
				Gets or sets the modification group to be checked for changes.
				This property is also available on the ModWatcher controls, and
				provides a method of grouping controls in the same way that the
				ValidationGroup property is used on Vadidator controls.
			</td>
		</tr>
		<tr>
			<td>
				AlertBehaviorID
			</td>
			<td></td>
			<td>
				Gets or sets the ID of the AlertBehaviorBase control that defines
				how the user should be notified if a change has occurred.
				This property allows an AlertBehavior to be bound to a ModAlert
				control from the aspx page.  As an alternative to using an AlertBehavior,
				you can specify a value for the NotifyModMessage property.
			</td>
		</tr>
		<tr>
			<td>
				AlertBehavior
			</td>
			<td></td>
			<td>
				Gets or sets the AlertBehaviorBase control that defines
				how the user should be notified if a change has occurred.
				This property allows an AlertBehavior to be bound to a ModAlert
				control from within code.  If the AlertBehaviorID property is
				specified, it will overwrite this property.  As an alternative
				to using an AlertBehavior, you can specify a value for the
				NotifyModMessage property.
			</td>
		</tr>
		<tr>
			<td>
				NotifyModMessage
			</td>
			<td></td>
			<td>
				Gets or sets the dialog message that should prompt the user if
				a change exists.  If an Alert Control is specified through either
				the AlertControlID or AlertControl properties, then the NotifyModMessage
				property is not used.
			</td>
		</tr>
	</table>

	<p>
		For more information about the built-in ModAlert controls, refer to an example
		of each control shown below.
	</p>

	<p>
		<asp:GridView ID="gvModAlertControls" runat="server"
			GridLines="None" ShowHeader="false" AutoGenerateColumns="false">
			<Columns>
				<asp:HyperLinkField DataTextField="Title" DataNavigateUrlFields="Url" />
				<asp:TemplateField ItemStyle-Width="15px" ItemStyle-HorizontalAlign="center">
					<ItemTemplate>-</ItemTemplate>
				</asp:TemplateField>
				<asp:BoundField DataField="Description" />
			</Columns>
			<RowStyle VerticalAlign="top" />
		</asp:GridView>
	</p>

</asp:Content>

